home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / vayaircx / methodse.ht_ / methodse.ht
Encoding:
Text File  |  1998-09-11  |  3.2 KB  |  22 lines

  1. <html>
  2. <HEAD>
  3. <META HTTP-EQUIV="Keywords" CONTENT=""><BODY BGCOLOR="#FFFFCC"><BODY BACKGROUND="images\bkyellow.gif"></HEAD>
  4. <BASEFONT FACE="MS Sans Serif" COLOR=#000000>
  5. <p><b><FONT FACE="Arial" SIZE=2>Method : Send</FONT></b></p>
  6. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>This method returns TRUE and requires a String parameter (LPCTSTR for those </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>using Visual C++). This method will almost always return true unless something </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>drastic goes wrong or you're not connected to server. The string you pass into the </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>function is sent 'raw' to the server except for it is appended with a cr&lf if not </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>present. This method is used to send all msgs to server as of now.</FONT></p>
  7. <p></p>
  8. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>In upcoming versions i will keep this method, but add other methods like </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>'ChanMsg', which will accept two parameters: Channel name, and message to be </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>sent, so you won't have to call Send("PRIVMSG </FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><chan></FONT></i><FONT FACE="Arial" SIZE=3 COLOR=#800000> :</FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><text></FONT></i><FONT FACE="Arial" SIZE=3 COLOR=#800000>").</FONT></p>
  9. <p></p>
  10. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>It is always a good idea to download the RFC (Request For Comment) to any </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>project  you are working on. The IRC RFC is 1459, and the IdentD is 1413.</FONT></p>
  11. <p></p>
  12. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>In case your too lazy to download these RFCs, I've included a few examples </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>to help you use the Send method better:</FONT></p>
  13. <p></p>
  14. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>Register yourself: NICK </FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><nick></FONT></i></p>
  15. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>Join a chan: JOIN </FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><chan></FONT></i></p>
  16. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>Leave a chan: PART </FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><chan></FONT></i></p>
  17. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>Send msg to chan: PRIVMSG </FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><chan></FONT></i><FONT FACE="Arial" SIZE=3 COLOR=#800000> :<msg></FONT></p>
  18. <p><FONT FACE="Arial" SIZE=3 COLOR=#800000>Send msg to user: PRIVMSG </FONT><i><FONT FACE="Arial" SIZE=3 COLOR=#800000><user></FONT></i><FONT FACE="Arial" SIZE=3 COLOR=#800000> :<msg></FONT></p>
  19. <p></p>
  20. <p><b><FONT FACE="Arial" SIZE=3 COLOR=#800000>Don't forget the colon!</FONT></b><FONT FACE="Arial" SIZE=3 COLOR=#800000> It is used to specify that the remaining text should not be </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>parsed, but used as one parameter. Often times if you forget the colon, only the </FONT><FONT FACE="Arial" SIZE=3 COLOR=#800000>first word will show in many clients.</FONT><FONT FACE="Arial" SIZE=1> </FONT></p>
  21.  
  22. </html>